// let jspang = {
//     name:'技术胖',
//     website:'jspang.com',
//     age:18,
//     saySometing:function(){
//         console.log('为了前端技术')
//     }
// }
// console.log(jspang.name)
// jspang.saySometing()

// let arr1:number[] = [1]   //声明一个数值类型的数组
// let arr2:Array<string> = ['casca','xcia'] //声明一个字符串类型的数组
// let arr3:Array<boolean> = [true , false ,false]


//构造函数赋值法
let arr1:number[] = new Array()
let ara2:number[] = new Array(1,2,3,4,5)
let arr3:Array<string> = new Array('jspang','技术胖','金三胖')
let arr4:Array<boolean> = new Array(true ,false , false)  
console.log(arr1)

//元祖
let x : [string,number]

x = ['hello',10]
// x = [10,'hello']
 